package com.chongbangbang.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 宠物基本信息
 * </p>
 *
 * @author TP
 * @since 2022-03-18 16:09:49
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("pet_info")
@ApiModel(value = "PetInfo对象", description = "宠物基本信息")
public class PetInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("pet_info表的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("外键,对应user的主键id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("宠物名字")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("宠物照片")
    @TableField("pet_photo")
    private String petPhoto;

    @ApiModelProperty("宠物类型")
    @TableField("`type`")
    private String type;

    @ApiModelProperty("性别")
    @TableField("sex")
    private String sex;

    @ApiModelProperty("年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty("生日")
    @TableField("birthday")
    private LocalDate birthday;

    @ApiModelProperty("体重(kg)")
    @TableField("weight")
    private Float weight;

    @ApiModelProperty("身高")
    @TableField("height")
    private Float height;

    @ApiModelProperty("体长")
    @TableField("body_length")
    private Float bodyLength;

    @ApiModelProperty("是否有过疾病")
    @TableField("sick")
    private Boolean sick;

    @ApiModelProperty("是否接种过疫苗")
    @TableField("vaccinate")
    private Boolean vaccinate;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("修改时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty("逻辑删除")
    @TableField("`delete`")
    @TableLogic
    private Integer delete;


}
